import requestMock from '@/utils/requestMock'

// 获取菜单数据
export async function getMenu() {
  return await requestMock(() => {
    return {
      msg: 'ok',
      data: [
        {
          id: 1,
          path: '/user',
          name: '员工管理',
          children: [
            {
              id: 2,
              name: '员工资料',
              path: 'data'
            }
          ]
        },
        {
          id: 3,
          path: '/system',
          name: '系统管理',
          children: [
            {
              id: 4,
              name: '基础信息管理',
              path: 'basic'
            }
          ]
        },
      ]
    }
  })
}